ALL: permGPU.so

permGPU.so: permGPU.cu ranker.h
	nvcc -c -I${CUDA_HOME}/include -Xcompiler "-I${R_INCLUDE_DIR} -fpic" permGPU.cu -o permGPU.o
	nvcc -shared -L${CUDA_HOME} -lcublas -lcuda  -Xlinker "-L${R_LIB} -lR " permGPU.o -o permGPU.so


clean:
	rm *.so *.o
